package com.example.tagsdemo.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200,"成功"),
    SERVER_ERROR(500,"服务器错误"),

    TABLE_IS_EXISTS(10010,"数据表已经存在"),
    CREATE_TABLE_ERROR(10011,"创建表失败"),
    CREATE_ENTITY_ERROR(10012,"生成实体类失败"),

    ;
    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
